Restrict

annotation class Restrict(val min: Int = Int.MIN_VALUE, val max: Int = Int.MAX_VALUE, val type: ValidatedNumber.WidgetType = WidgetType.SLIDER)

Annotation-driven validation for Ints

Author

fzzyhmstrs

Since

0.2.0, added widget type 0.6.3

Parameters

min

: Int - minimum allowable value, default to Int.MIN_VALUE

max

: Int - maximum allowable value, default to Int.MAX_VALUE

type

: ValidatedNumber.WidgetType - The "style" of the GUI widget for the annotated setting

Properties

Link copied to clipboard
val max: Int
Link copied to clipboard
val min: Int
Link copied to clipboard